/*
 * main.c
 *
 *  Created on: 21.01.2013
 *      Author: m0hawk
 */
#include <stdio.h>
#include "einlesen.h"
#include "grafik.h"

int main(int argc, char* args[]) {

	if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
		return 1;
	}

	fprintf (stdout, "%s", "hallo welt");

	struct myStruct *foo = NULL;
	foo = readFromFile("test.txt");

	if(foo==NULL)return 1;

	for(int i=0; i<foo->size;i++){
		printf("%f\n",foo->values[0][i]);
	}

	sdlFunktion(foo);
	return 0;
}

